﻿<Window 
	x:Class="EyeOpen.Wpf.MultiImage.ImagesWindow"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Images" 
	Height="350" 
	Width="525"
	WindowStartupLocation="CenterScreen">
	<Window.Resources></Window.Resources>
	<Grid>
		<ListBox x:Name="listBox">
			<ListBox.ItemsPanel>
				<ItemsPanelTemplate>
					<UniformGrid Columns="3"/>
				</ItemsPanelTemplate>
			</ListBox.ItemsPanel>
			<ListBox.ItemTemplate>
				<DataTemplate>
					<Border 
						BorderBrush="Black" 
						BorderThickness="1">
						<Image 
							Source="{Binding}"
							Width="50"
							Height="50"
							Stretch="UniformToFill"
						/>
					</Border>
				</DataTemplate>
			</ListBox.ItemTemplate>
		</ListBox>
	</Grid>
</Window>